using System;
using System.Collections.Generic;
using SocialNetwork.Domain.Entities;
using System.Linq;
using SocialNetwork.Domain.Repositories.Interfaces;

namespace SocialNetwork.Domain.Repositories
{
    public class ScheduleRepository : RepositoryBase, IScheduleRepository
    {
        public List<Schedule> GetSchedules(DateTime date)
        {
            return Context.Schedules.Where(s => s.Date == date).ToList();
        }
    }
}